<template>
    <div class="godesc-container">
        <h3>{{ info.title }}</h3>

        <hr>

        <div class="content" v-html="info.content"></div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            info:{},
            id:this.$route.params.id
        }
    },
    created(){
        this.getGodesc()
    },
    methods: {
        getGodesc(){
            this.$axios.get('api/goods/getdesc/'+ this.id).then(res => {
                if(res.data.status === 0){
                    this.info = res.data.message[0]
                    
                }
            })
        }
    },
    
}
</script>

<style>
.godesc-container{
    padding: 4px;
}
.godesc-container h3{
    color: red;
    font-size: 16px;
    text-align: center;
    padding: 15px 0px 15px 0px;
}
.godesc-container .content p:nth-child(1){
    font-size: 13px;
    text-align: justify;
}
.godesc-container .content img{
    width: 100%
}
</style>